<%@ page import="com.etc.entity.Admin" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
		 pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath();
    // 获得项目完全路径（假设你的项目叫MyApp，那么获得到的地址就是http://localhost:8080/MyApp/）: 
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<!DOCTYPE html>
<html>
	<!--商品属性信息管理-->
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
		<meta name="format-detection" content="telephone=no, email=no, date=no, address=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="format-detection" content="telephone=no" />
		<meta name="apple-mobile-web-app-capable" content="yes" />
		<meta content="black" name="apple-mobile-web-app-status-bar-style">
		<link href="<%=basePath %>css/bksystem.css" rel="stylesheet" type="text/css" /> 
		<link href="<%=basePath %>font/iconfont.css" rel="stylesheet" type="text/css" />
		<link href="<%=basePath %>css/module.css" rel="stylesheet" type="text/css" />
		<link href="<%=basePath %>css/pages.css" rel="stylesheet" type="text/css" />
		<title>商品管理</title>
		<script src="<%=basePath %>js/jquery-1.9.1.min.js" type="text/javascript"></script>
		<script src="<%=basePath %>js/jquery.nicescroll.js" type="text/javascript"></script>
		<script src="<%=basePath %>js/HUpages.js" type="text/javascript"></script>
		<script src="<%=basePath %>js/common.js" type="text/javascript"></script>
	</head>

<body id="situation">
<%
	//从session中取出登录的对象
	Admin user = (Admin) session.getAttribute("loginUser");
	if (user == null){
		//用户没有登录
		session.setAttribute("loginMes","请先登录");
		//跳转到登录页面   必须用重定向！！！ 转发会携带参数
		response.sendRedirect("login.jsp");
	}

%>
<div class="pages-style" >
	<!--左侧菜单栏-->
	<div class="bk-con-menu " id="bk-con-menu">
					<div class="menubtn">
						<span class="close_btn samebtn"><i>隐藏</i></span>
						<span class="show_btn samebtn"><i>显示</i></span>
					</div>
					<div class="title-menu">分类信息</div>
					<div class="breadcrumb" id="breadcrumb">
						<ul class="clearfix menu-section menulist" id="menu-section">
							
						</ul>
					</div>
				</div>
	<!--右侧内容-->
	<div class="bk-con-message message-section" id="iframe_box">
          
           <!--列表内容-->
           <div class="page_content clearfix mb15 table-module ">
           <form action="<%=basePath %>c/queryCUsersFilter.do" method="post">
          	标题：
           <input type="hidden" value=0 name="page">
           <input type="text" name="name"  />
           <input type="submit" value="提交" />
           </form>
           <a href="<%=basePath %>c/insertc.do">增加</a>
           	<table class="gallery table table_list table_striped table-bordered " id="">
           		<thead>
		        <tr>
				
				<th >ID</th>
				<th >标题</th>
				
				
				<th >父类标题</th>
				
				
		       </tr>
		       </thead>
		       <tbody>
		       
		       <c:forEach items="${list}" var="user">
				   
				    <tr>
		           		<td>${user.cid }</td>
		           		<td>${user.ctitle }</td>
		           		
		           		
		           		<td>${user.parent }</td>
		           	
		           		<td>
		           		
		           		</td>
		           		</tr>
				</c:forEach>

           		
		       </tbody>
           	</table>
           	<c:forEach items="${pageList}" var="item">
           		
           		
		           
           		<a href="<%=basePath %>c/queryC2/${item }.do">${item+1 }</a>
           	</c:forEach>
           	
           	
           </div>
    </div>
  </div>
 </body>
</html>

<script>
$(function(){
	//内页框架结构编辑
	$("#situation").Hupage({
		slide: '#breadcrumb',
		padding:15,
		menuModule:'#bk-con-menu', //菜单模块
		pagecontent:'.page_content',//自定义属性
		operation:'.operation',//自定义属性
		scrollbar:function(e){
			e.niceScroll({
				cursorcolor: "#dddddd",
				cursoropacitymax: 1,
				touchbehavior: false,
				cursorwidth: "3px",
				cursorborder: "0",
				cursorborderradius: "3px",
			});						
		},
		expand:function(thisBox,settings){	
			var pc="";
			$(settings.pagecontent).css("margin-bottom")!=null? pc=parseInt($(settings.pagecontent).css("margin-bottom").replace("px","")):'';
		    $(settings.pagecontent).css({height:$(window).height()-$(settings.operation).outerHeight()-pc-(settings.padding*2)})
		    settings.scrollbar($(settings.slide) && $(settings.pagecontent));		    
		}//自定义方法
	});
 });
</script>
